<?php
header('Content-Type:text/html; charset=windows-874');

$re_diploma_stu_id = $_POST['re_diploma_stu_id'];
$re_diploma_prefix = $_POST['re_diploma_prefix'];
$re_diploma_stu_name = iconv('utf-8', 'tis-620', $_POST['re_diploma_stu_name']);
$re_diploma_stu_faculty = $_POST['re_diploma_stu_faculty'];
$re_diploma_stu_major = $_POST['re_diploma_stu_major'];
$re_diploma_stu_comment = iconv('utf-8', 'tis-620', $_POST['re_diploma_stu_comment']);
$course_id = $_POST['course_id'];

include 'connect.php';

$sqls = "use eiso";
$sqls .= " insert into request_diploma(re_diploma_stu_id, re_diploma_prefix, re_diploma_stu_name, re_diploma_stu_faculty, re_diploma_stu_major, re_diploma_stu_comment, course_id, check_step) ";

$sqls .= " values('".$re_diploma_stu_id."', ".$re_diploma_prefix.", '".$re_diploma_stu_name."', ".$re_diploma_stu_faculty.", ".$re_diploma_stu_major.", '".$re_diploma_stu_comment."', ".$course_id.", '0')";

$result = mssql_query($sqls);
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
</head>